package com.example.eliliya.simple_play;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.example.eliliya.simple_play.NotificationService;

/**
 * Created by EliLiya on 2018/5/30.
 */

public class AlarmReceiver extends BroadcastReceiver{
    public void onReceive(Context context,Intent intent){
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.setClass(context,NotificationService.class);
        context.startService(intent);
    }
}
